/**
 * Copyright © 2016-2024 The Thingsboard Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import 'constants';

:host {
  .subscription-container {
    display: block;
    margin-bottom: 8px;
    padding: 2px 0 2px 0;
    border-radius: 4px;
    border: 1px solid var(--borders-day-borders-extra-light-w, rgba(0, 0, 0, 0.05));
    box-shadow: 0 5px 16px 0 rgba(0, 0, 0, 0.04);

    &:hover {
      background: rgba(31, 139, 77, 0.04);
    }

    .subscription-row {
      padding: 4px 8px 4px 0;

      .subscription-row-label {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: auto;
      }

      .label {
        flex: 1;
        min-width: 0px;
        color: rgba(0, 0, 0, 0.87);
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0.15px;
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        @media #{$mat-lg} {
          font-size: 13px;
          max-width: 200px;
        }
        @media #{$mat-md} {
          font-size: 13px;
        }
      }

      .label-color {
        margin-left: 8px;;
        height: 24px;
        width: 4px;
        border-radius: 2px;
      }

      .qos {
        color: rgba(0, 0, 0, 0.38);
        width: 30px;
      }

      .action-buttons-container {
        border-radius: 4px;
        background: #f6faf8;
      }

      .action-buttons {
        visibility: hidden;

        .mat-icon {
          color: rgba(0, 0, 0, 0.38);
        }
      }

      .show-buttons {
        visibility: visible;
      }
    }
  }
}

::ng-deep {
  .mat-mdc-icon-button svg, .mat-mdc-icon-button img {
    height: 20px;
    width: 20px;
  }

  .mat-mdc-menu-content .mat-mdc-menu-item .mdc-list-item__primary-text {
    display: flex;
  }
}
